FROM harbor.zeven1992.com/app/go-base:v1.0

ADD ./ /go-gin-chat
WORKDIR /go-gin-chat

RUN go env -w GO111MODULE=on && \
    go env -w GOPROXY=https://goproxy.cn,direct && \
    /root/go/bin/go-bindata -o=bindata/bindata.go -pkg=bindata ./static/... ./views/... && \
    go get

EXPOSE 8322
CMD ["go", "run", "main.go"]
